package com.example.administrator.questionanswer.greendao;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by Administrator on 2018/4/2 0002.
 */
@Entity
public class UserBean {


    @Id
    Long id;
    @Property(nameInDb = "name")
    String name;
    @Property(nameInDb = "password")
    String password;

    @Property(nameInDb = "major")
    String major;

    @Generated(hash = 1994819503)
    public UserBean(Long id, String name, String password, String major) {
        this.id = id;
        this.name = name;
        this.password = password;
        this.major = major;
    }

    @Generated(hash = 1203313951)
    public UserBean() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return this.password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getMajor() {
        return this.major;
    }

    public void setMajor(String major) {
        this.major = major;
    }
   

}
